package com.llb666.e.shop.domain.repository;

import com.llb666.e.shop.api.vo.CategoryVo;
import com.llb666.e.shop.api.vo.NewItemsVo;
import com.llb666.e.shop.domain.entity.Category;

import java.util.List;

/**
 * @author 斌~
 * @date 2022/8/29 下午9:39
 */
public interface CategoryRepository {
    
    /**
     * 查询最上级分类列表.
     * @return 商品分类列表
     */
    List<Category> queryAllCategoryRoot();

    List<NewItemsVo> getSixNewItemsLazy(Integer rootCatId);

    List<CategoryVo> getSubCatList(Integer rootCatId);
}
